﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;

namespace Sparrow.VisualStudio.Debugger.RouteVisualizer
{
    [Serializable]
    class JsonRouteTransporter : RouteTransporter
    {
        public JsonObject JsonObject
        {
            get;
            set;
        }

        public JsonRouteTransporter(System.Web.Routing.RouteBase route)
        {
            this.JsonObject = new JsonObject(route);
        }
        public override System.Web.Routing.RouteBase Deserialize()
        {
            return this.JsonObject.Deserialize() as RouteBase;
        }
    }
}
